package com.mes.biz.mapper;

import com.mes.common.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.mes.biz.domain.BizProductInventoryBook;

/**
 * 库存台账Mapper接口
 * @author hwg
 * @email hwg
 * @date 2023-06-01
 */
public interface BizProductInventoryBookMapper extends BaseMapper<BizProductInventoryBook>
{

    /**
     * 批量删除库存台账
     * @param ids 需要删除的库存台账ID集合
     * @return
     */
    public int deleteBizProductInventoryBookByIds(@Param("ids") String[] ids, @Param("DEL_FLAG_DELETE") String DEL_FLAG_DELETE);


    int deleteBizProductInventoryBookByOrderNumber(@Param("orderNumber") String orderNumber, @Param("DEL_FLAG_DELETE") String delFlagDelete);

    BizProductInventoryBook selectBizProductInventoryBookByOrderNumber(@Param("orderNumber")String orderNumber,
                                                                       @Param("spaceId")String spaceId,
                                                                       @Param("productId")String productId);
}
